package newCar;


/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-11-04
 * Time: 21:06
 */
public class Bottom {

    private Tire tire;
    //以前是自己找一个轮胎,现在交给别人去做
    public Bottom(Tire tire){
        this.tire = tire;
    }
    public void init(){
        System.out.println("Bottom init!!!");
        //底盘类要依赖与轮胎的
        tire.init();
    }


}
